package com.huayi.website.service;

import com.huayi.website.entity.NewsCategoryEntity;
import com.huayi.website.entity.NewsEntity;
import com.huayi.website.utils.PagingResponse;

import java.util.List;

public interface NewsService {
    List<NewsCategoryEntity> getAllCategory();
    NewsCategoryEntity getCategoryById(Integer id);
    Integer editCategory(Integer categoryId, String name, String content, Integer sort, String image);
    void deleteCategory(Integer id);
    void deleteNews(Integer id);

    Integer editNews(NewsEntity news);

    PagingResponse<NewsEntity> getAllList(int pageIndex, int pageSize, String title, Integer categoryId,Integer language);

    NewsEntity getNewsById(Integer id);
}
